{% load static from staticfiles %}
<!DOCTYPE html>
<html lang="en">
{% block header %}
<head>
  <title>Binder DNS Admin</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" type="text/css" href="{% static "bootstrap/css/bootstrap.min.css" %}" />
  <script src="{% static "sorttable.js" %}"></script>
</head>
{% endblock header %}
<body>
  <script src="{% static "jquery-2.1.3.min.js" %}"></script>
  <script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>

<div class="container">
  <div class="row">
    <div class="col-md-12">
      <div class="navbar navbar-default">
        <div class="container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar-collapse-1">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar" aria-hidden="true"></span>
              <span class="icon-bar" aria-hidden="true"></span>
              <span class="icon-bar" aria-hidden="true"></span>
            </button>
            <a class="navbar-brand" href="{% url "index" %}">Binder</a>
          </div>
          <div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
            <ul class="nav navbar-nav">
              <li><a href="{% url "server_list" %}">Server List</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-md-12">
        <h2>{% block pageheader %}{% endblock pageheader %}</h2>
        <br />
    </div>
  </div>
  <div class="row">
    <div class="col-md-12">
      {% if messages %}
      <ul id="messages" class="list-unstyled text-center" style="margin-bottom: 2em;">
        {% for message in messages %}
        <li role="alert" class="alert alert-{{ message.tags }} alert-dismissible"><button aria-label="Close" data-dismiss="alert" class="close" type="button"><span aria-hidden="true">×</span></button>{{ message.message }}</li>
        {% endfor %}
      </ul>
      {% endif %}
      {% block body %}{% endblock body %}
      Served by: {{ request.META.SERVER_NAME }}
    </div>
  </div>
</div>
{% block footer %}{% endblock footer %}
</body>
</html>
